#ifndef OCL_CONTEXT_INCLUDED
#define OCL_CONTEXT_INCLUDED 1

#include "../ocl/device.h"


typedef struct
{
	cl_context    handle;
	size_t        num_devices;  /*!< #devices           */
	cl_device_id *DEVICES;      /*!< CL_CONTEXT_DEVICES */
}
ocl_context;

#define OCL_CONTEXT_INIT { NULL, 0, NULL }

int  ocl_context_load(ocl_context        *context, 
					  cl_uint             num_devices,
					  const cl_device_id *devices );

void ocl_context_quit(ocl_context *context );

#endif
